package cn.xbtop.config;

import org.apache.activemq.command.ActiveMQQueue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.jms.Queue;

/**
 * @author Mxb
 * @version 1.0
 * @date 2020/6/11 15:19
 */
@Configuration
public class ActiveMQConfig {

    public static final String QUEUE_NAME = "seconds-kill-queue";

    @Bean
    public Queue queue() {
        return new ActiveMQQueue(QUEUE_NAME);
    }
}
